//
//  AppHelper.m
//  Ultimate
//
//  Created by leo on 13-4-8.
//
//

#import "AppHelper.h"
#import "UICKeyChainStore.h"

@implementation AppHelper

+ (NSString*)userID {
    
    NSString* userID = [UICKeyChainStore stringForKey:@"userID" service:@"MyUUIDService" accessGroup:nil];
    if (!userID)
    {
        userID = [[NSUUID UUID] UUIDString];
        [UICKeyChainStore setString:userID forKey:@"userID" service:@"MyUUIDService" accessGroup:nil];
    }
    return userID;
}

+ (NSString*)appVersion {
    
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    NSString *appVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    
    return appVersion;
}

+ (NSString*)appIDInItunes
{
    return @"306599340";
}

+ (NSString*)appLinkToAppStore
{
    return @"http://m.yellowbook.com/appstoreredirect/";
}

+ (NSString*)appName
{
    return @"HibuSearch";
}

@end
